//
//  SISSPublicMethods.h
//  SISSAPP
//
//  Created by 袁应荣 on 15/01/2018.
//  Copyright © 2018 优房网. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface SISSPublicMethods : NSObject


/**
 根据租房要求、房源特色字符串返回对应的颜色

 @param str 对应的字符串
 @return 对应的颜色
 */
+ (UIColor *)matchTextColorWithHouseFeatureStr:(NSString *)str;

/**
 根据对应的数据返回对应的keyboardType
 {
 UIKeyboardTypeDefault,           1     // Default type for the current input method.
 UIKeyboardTypeASCIICapable,      2     // Displays a keyboard which can enter ASCII characters
 UIKeyboardTypeNumbersAndPunctuation,3  // Numbers and assorted punctuation.
 UIKeyboardTypeURL,                    // A type optimized for URL entry (shows . / .com prominently).
 UIKeyboardTypeNumberPad,              // A number pad with locale-appropriate digits (0-9, ۰-۹, ०-९, etc.). Suitable for PIN entry.
 UIKeyboardTypePhonePad,               // A phone pad (1-9, *, 0, #, with letters under the numbers).
 UIKeyboardTypeNamePhonePad,           // A type optimized for entering a person's name or phone number.
 UIKeyboardTypeEmailAddress,           // A type optimized for multiple email address entry (shows space @ . prominently).
 UIKeyboardTypeDecimalPad NS_ENUM_AVAILABLE_IOS(4_1),   // A number pad with a decimal point.
 UIKeyboardTypeTwitter NS_ENUM_AVAILABLE_IOS(5_0),      // A type optimized for twitter text entry (easy access to @ #)
 UIKeyboardTypeWebSearch NS_ENUM_AVAILABLE_IOS(7_0),    // A default keyboard type with URL-oriented addition (shows space . prominently).
 UIKeyboardTypeASCIICapableNumberPad NS_ENUM_AVAILABLE_IOS(10_0), // A number pad (0-9) that will always be ASCII digits.
 
 UIKeyboardTypeAlphabet = UIKeyboardTypeASCIICapable, // Deprecated
 
 }
 
 @param num 对应数字 1 ~ 12
 @return 对应keyboardType
 */
+ (UIKeyboardType)matchKeybordTypeWithKeyboardNum:(NSInteger)num;

@end
